import Mock from 'mockjs';

export function mock() {
    // 获取返利明细
    Mock.mock(/rebate\/detail/, 'get', {
        status: 0,
        message: 'OK',
        data: [
            {
                nickname: '123',
                order_name: 'dwwd',
                tilte: '钻戒',
                avatar: 'http://www.baidu.com',
                money: 123,
                price: 10000,
                shop: '门店名',
                referrer: '',
                // 'init', 'issued', 'fail'
                status: 'init',
                created_at: 123,
            },
        ],
    });

    // 获取团队数据
    Mock.mock(/rebate\/team_statistics/, 'get', {
        status: 0,
        message: 'OK',
        data: [
            {
                achievement: 123,
                income: 123,
                share: 123,
            },
        ],
    });

    // 团队收入列表
    Mock.mock(/rebate\/team_list/, 'get', {
        status: 0,
        message: 'OK',
        data: [
            {
                id: 123,
                nickname: 'wqb',
                avatar: 'http://www.baidu.com', 
                income: 123,
            },
        ],
    });
}
